package com.erp.ae.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.ae.api.domain.AeStoreOrderReceiptAddress;
import com.erp.ae.mapper.AeStoreOrderReceiptAddressMapper;
import com.erp.ae.service.IAeStoreOrderReceiptAddressService;
import com.ruoyi.common.core.domain.R;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 商户订单收货地址信息Service业务层处理
 *
 * @author erp
 * @date 2023-03-09
 */
@RequiredArgsConstructor
@Service
public class AeStoreOrderReceiptAddressServiceImpl implements IAeStoreOrderReceiptAddressService {
    private final AeStoreOrderReceiptAddressMapper baseMapper;

    @Override
    public AeStoreOrderReceiptAddress selectAddressByOrderId(Long orderId) {
        return baseMapper.selectOne(new LambdaQueryWrapper<AeStoreOrderReceiptAddress>().eq(AeStoreOrderReceiptAddress::getOrderId,orderId));
    }


}
